package com.power.feign.sentinel;

import com.power.domain.MemberAddr;
import com.power.feign.OrderMemberFeign;
import com.power.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description 订单业务模块调用用户模块接口的熔断器实现类
 * @Author dingchunlin
 * @Date 2024/07/20 17:32
 * @Version 1.0.0
 */
@Component
@Slf4j
public class OrderMemberFeignSentinel implements OrderMemberFeign {

    @Override
    public Result<MemberAddr> getMemberAddrById(Long addrId) {
        log.error("远程调用失败，根据地址ID查询会员地址失败");
        return null;
    }

    @Override
    public Result<MemberAddr> getMemberDefaultAddrByOpenId(String openId) {
        log.error("远程调用失败，根据会员OpenId查询默认地址失败");
        return null;
    }

    @Override
    public Result<String> getNickNameByOpenId(String openId) {
        log.error("远程调用失败，根据会员OpenId查询昵称失败");
        return null;
    }
}
